package com.wtc.override;

public class Test {
    public static void main(String[] args) {
        Person person = new Person("make", 18);
        Student student = new Student("马可", 18, 192, 80);
        System.out.println(person.say());
        System.out.println(student.say());
        Person person1 = new Student("make", 22, 569, 90);
        System.out.println(person1.say());
//        Student student1 = (Student) person1;
//        student1.print();
//        System.out.println(student1.say());
        ((Student) person1).print();
    }
}
